package com.yiwei.jmx.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.allen.library.SuperButton;
import com.yiwei.jmx.R;
import com.yiwei.jmx.base.BaseActivity;
import com.yiwei.jmx.util.Util;
import com.yiwei.jmx.view.V19FrameLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * Created by xsooy-pc on 17-12-8.
 */

public class XueXinQuestionActivity extends BaseActivity {


    @BindView(R.id.btn_back)
    ImageView btnBack;
    @BindView(R.id.btn_wechat)
    ImageView btnWechat;
    @BindView(R.id.layout_title)
    V19FrameLayout layoutTitle;
    @BindView(R.id.txt_title)
    TextView txtTitle;
    @BindView(R.id.txt_one)
    TextView txtOne;
    @BindView(R.id.txt_question_one)
    RelativeLayout txtQuestionOne;
    @BindView(R.id.txt_two)
    TextView txtTwo;
    @BindView(R.id.txt_question_two)
    RelativeLayout txtQuestionTwo;
    @BindView(R.id.btn_register)
    SuperButton btnRegister;
    @BindView(R.id.btn_find)
    SuperButton btnFind;
    private Unbinder unbiner;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xuexin_question);
        initBar();
        unbiner = ButterKnife.bind(this);
        init();
    }

    private void init() {
        txtTitle.setText("遇到问题");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unbiner.unbind();
        unbiner = null;
    }

    @OnClick({R.id.btn_back, R.id.btn_wechat, R.id.txt_question_one, R.id.txt_question_two, R.id.btn_register, R.id.btn_find})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_back:
                finish();
                break;
            case R.id.btn_wechat:
                Util.startActivity(this, WechatChatActivity.class);
                break;
            case R.id.txt_question_one:
                break;
            case R.id.txt_question_two:
                break;
            case R.id.btn_register:
                Util.startActivity(this, V3XueXinRegisterActivity.class);
                break;
            case R.id.btn_find:
                Util.startActivity(this, V3XueXinForgetpassActivity.class);
                break;
        }
    }
}
